<?
$type = $this->get('rankType');

switch($type){
	case '3' :
		$expertsByCredit = get_list('Experts','limit/10/order/credit desc/type/3');
		$expertsByPapers = get_list('Experts','limit/10/order/paper_qty desc/type/3');
		$title = "知名";
		break;
	case '4' :
		$expertsByCredit = get_list('Experts','limit/10/order/credit desc/type/4');
		$expertsByPapers = array();
		$title = "新锐";
		break;
}
?>

<div class="paihang_out" >
  <div class="title_right"><span class="hotspot" onmouseover="av1()" onmouseout="tooltip.hide();"><img src="<?=$TPL['url']?>images/help_h30.gif" />活跃度说明</span><a href="<?=_url('Experts','Board',"type=$type&order=credit")?>" target="_blank">
    <?=$title?>排行榜</a></div>
  <div class="paihang_con">
    <!--滑动门开始-->
    <div class="scrolldoorFrame">
      <ul class="scrollUl">
        <li class="sd02" id="m02">
          <?$expertsByPapers && print('论文数')?>
        </li>
        <li class="sd01" id="m01"><a href="<?=_url('Experts','Board',"type=$type&order=credit")?>" target="_blank">活跃度</a></li>
      </ul>
      <div class="scrollCon">
        <?if($expertsByPapers){?>
        <dl id="c02" class="hidden">
          <?
            foreach($expertsByPapers as $key=> $row){
				$i = $key+1;
				$j= sprintf("%02d",$j);
          ?>
          <dd class="bg<?=$j?>"> <span class="num"> <img src="<?=$TPL['url']?>images/no_<?=$i?>.gif" /></span> <span class="name"><a href="<?=_url('Experts','View','uid='.$row['uid'])?>" target="_blank">
            <?=$row['name']?>
            </a></span> <span class="huoyue">论文数：</span> <span class="hynum">
            <?=$row['paper_qty']?>
            </span> </dd>
          <?}?>
        </dl>
        <?}?>
        <dl id="c01">
          <?
           foreach($expertsByCredit as $key=> $row){
				$i = $key+1;
				$j= sprintf("%02d",$j);
          ?>
          <dd class="bg<?=$j?>"> <span class="num"><img src="<?=$TPL['url']?>images/no_<?=$i?>.gif" /></span> <span class="name"><a href="<?=_url('Experts','View','uid='.$row['uid'])?>" target="_blank">
            <?=$row['name']?>
            </a></span> <span class="huoyue">活跃度：</span> <span class="hynum">
            <?=$row['credit']?>
            </span> </dd>
          <?}?>
        </dl>
      </div>
    </div>
    <!--滑动门结束-->
  </div>
</div>
